//
//  NSDate+CYDate.m
//  cyjf
//
//  Created by tauCross on 2017/5/7.
//  Copyright © 2017年 Auto Financing. All rights reserved.
//

#import "NSDate+CYDate.h"



@implementation NSDate (CYDate)

- (NSString *)cy_financeCountDown
{
    long seconds = (long)[self timeIntervalSinceNow];
    return [NSString stringWithFormat:@"%02li:%02li:%02li", seconds / (60 * 60), seconds % (60 * 60) / 60, seconds % 60];
}

- (NSString *)cy_stringWithFormat:(NSString *)format
{
    return [[NSDateFormatter cy_formatterWithFormat:format] stringFromDate:self];
}

@end
